package com.baizan.daka.ui.contract

import com.baizan.daka.base.IPresenter
import com.baizan.daka.base.IView
import com.baizan.daka.mvp.model.bean.*
import com.baizan.daka.net.BasePageResponse

interface HomeFrgContract {
    interface View : IView {

        fun loadListSuccess(data: BasePageResponse<TaskInfoBean>)

        fun loadListFail(fail: String)

        fun loadNewsListSuccess(data: List<NoticeInfoBean>)

        fun loadNewsListFail()

        fun loadBannerSuccess(data:List<BannerBean>)

        fun loadBannerFail()

        fun receiveTaskSuccess(index:Int,taskInfoBean: Any)

        fun loadUserPackageDesSuccess(userPackageDes: UserPackageDes)

        fun loadUserFial(error:String)
    }

    interface Presenter : IPresenter {

        fun loadList(CurrentPage: Int)

        fun loadNewsList()

        fun loadBanner()

        fun receiveTask(index:Int,taskId :Long)

        fun loaduserPackageDes()

    }
}